public class Solution319 {
    public int bulbSwitch(int n) {
        return (int)Math.sqrt(n);
    }

    public static void main(String[] args) {
        System.out.println(new Solution319().bulbSwitch(3));
    }
}
